package main

import (
	"Ginproject/PwdLearn/symmetrical_encryption/number_signal/utils"
	"fmt"
)

func main() {
	//utils.SaveRsaKey(2048)
	sign, err := utils.RsaGetString("privateKey.pem", "JacksonP")
	if err != nil {
		fmt.Println(err)
		panic("签名失败")
	}
	fmt.Println(sign)

	ok, err_varify := utils.RsaVarifySign(sign, "publicKey.pem", "JacksonP")
	if err_varify != nil {
		fmt.Println(err_varify)
		panic("验证签名失败")
	}
	fmt.Println(ok)
}
